<%--
    Document   : _left
    Created on : 9 mai 2012, 11:34:29
    Author     : Thomas
--%>

<%@page import="java.util.List"%>
<%@page import="business.*" %>

<%! List<Category> categories; %>
<% categories = (List<Category>) request.getAttribute("categories"); %>

<div class="span2">
    <h3>Cat&eacute;gories</h3>
    <br/>
    <a href="<%= request.getContextPath() %>"><i class="icon-check"></i>&nbsp;Promotions</a><br/>
    <% for(Category categorie : categories) { %>
    <a href="<%= request.getContextPath() %>/Index?action=voirCategorie&categoryID=<%= categorie.getID() %>"><i class="icon-check"></i>&nbsp;<%= categorie.getName() %></a><br/>
    <% } %>
</div>
